package com.ciaojian.client.controller;

import com.ciaojian.client.service.SchedulingServiceImpl;
import com.ciaojian.core.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author oxiny
 */
@Api(tags = "发型师: 发型师排班")
@RestController
@RequestMapping("/worker/schedule")
public class ScheduleController {
    @Resource
    private SchedulingServiceImpl schedulingService;

    @ApiOperation("未来三天排班")
    @GetMapping("/future")
    public Result findFutureSchedule(Integer workerId) {
        return Result.ok(schedulingService.findFutureSchedule(workerId));
    }
}
